package bean;


import java.io.Serializable;

public class BaseResponse implements Serializable {

    /**
	 * 
	 */
	private static final long serialVersionUID = 5370696258348191459L;
	protected int code;
    protected String message;
    protected Object data;

    public BaseResponse(){
        this.code = 1;
        this.message = "SUCCESS";
        this.data = null;
    }

    public BaseResponse(String message) {
        this.code = 0;
        this.message = message;
        this.data = null;
    }

    public BaseResponse(int code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }


    public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}